﻿<%@ Page Language="C#" MasterPageFile="~/WebMaster.master" AutoEventWireup="true" CodeFile="DailyData.aspx.cs" Inherits="DailyData" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqDataSource1"
        CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" AllowSorting="True">
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:BoundField DataField="ReadingDate" HeaderText="ReadingDate" ReadOnly="True"
                SortExpression="ReadingDate" />
            <asp:BoundField DataField="MinTemp" HeaderText="MinTemp" ReadOnly="True" SortExpression="MinTemp" />
            <asp:BoundField DataField="MaxTemp" HeaderText="MaxTemp" ReadOnly="True" SortExpression="MaxTemp" />
            <asp:BoundField DataField="AvgTemp" HeaderText="AvgTemp" ReadOnly="True" SortExpression="AvgTemp" />
            <asp:BoundField DataField="MaxWind" HeaderText="MaxWind" ReadOnly="True" SortExpression="MaxWind" />
            <asp:BoundField DataField="Rain" HeaderText="Rain" ReadOnly="True" SortExpression="Rain" />
            <asp:BoundField DataField="MinPressure" HeaderText="MinPressure" ReadOnly="True"
                SortExpression="MinPressure" />
            <asp:BoundField DataField="MaxPressure" HeaderText="MaxPressure" ReadOnly="True"
                SortExpression="MaxPressure" />
            <asp:BoundField DataField="AvgPressure" HeaderText="AvgPressure" ReadOnly="True"
                SortExpression="AvgPressure" />
            <asp:BoundField DataField="MinInsideTemp" HeaderText="MinInsideTemp" ReadOnly="True"
                SortExpression="MinInsideTemp" />
            <asp:BoundField DataField="MaxInsideTemp" HeaderText="MaxInsideTemp" ReadOnly="True"
                SortExpression="MaxInsideTemp" />
            <asp:BoundField DataField="AvgInsideTemp" HeaderText="AvgInsideTemp" ReadOnly="True"
                SortExpression="AvgInsideTemp" />
            <asp:BoundField DataField="DegreeDays" HeaderText="DegreeDays" ReadOnly="True" SortExpression="DegreeDays" />
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="WeatherReader.WeatherDbDataContext"
        OrderBy="ReadingDate desc" Select="new (ReadingDate, MinTemp, MaxTemp, AvgTemp, MaxWind, Rain, MinPressure, MaxPressure, AvgPressure, MinInsideTemp, MaxInsideTemp, AvgInsideTemp, DegreeDays)"
        TableName="DailySummaries">
    </asp:LinqDataSource>

</asp:Content>

